﻿$(function(){
	$('#chooseFile').submit(function(){
		var ziel=$('#configFile').val();
		$.ajax({
		type:"GET",
		url:ziel,
		async:false,
		beforeSend: function(x) {
			if(x && x.overrideMimeType) {
	      		 x.overrideMimeType("application/j-son;charset=UTF-8");
	      	}
 		},
 		dataType: "json",
		success: function(data){
    	console.log(data);
    	}
		
		})
		return false;
	})
})
